// import request from '@/utils/request'
import { Sleep, createRandom } from '../utils/index'

const urls = [
  'https://img.pconline.com.cn/images/bbs4/200810/17/1224206085128.jpg',
  'https://www.2008php.com/2015_Website_appreciate/2015-07-08/20150708214812.jpg',
  'https://img.pconline.com.cn/images/upload/upc/tx/wallpaper/1305/16/c4/20990657_1368686545118.jpg',
  'https://pic4.zhimg.com/v2-847c59a73b525acf850a3acc2b6244cf_r.jpg',
]

const mockData = () => urls[createRandom(0, 3)]
const updateFlag = () => [true, true, true, false][createRandom(0, 3)]


const getCvInfo = async () => {
  await Sleep(500)
  return {
    code: 200,
    msg: '',
    data: { url: mockData(), update: updateFlag() }
  }
}


export default getCvInfo

